package com.zhou.org.service;

import com.zhou.org.dao.Setting;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhou.org.dto.SettingQueryDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lang.zhou
 * @since 2022-08-23
 */
public interface SettingService extends IService<Setting> {
    List<Setting> list(SettingQueryDto dto);
    Setting getSetting(String module, String name);
    void saveSetting(Setting setting);

    void updateValue(String module, String name, Object value);
    void updateValue(String module, Map<String,Object> map);

    List<String> getSettingModule();
}
